#include<stdio.h>
int main()
{
	int n,i,a,x1,y1,r1,x2,y2,r2,o[255];
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		scanf("%d %d %d %d %d %d",&x1,&y1,&r1,&x2,&y2,&r2);
		if((r1-r2)*(r1-r2)>=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
			o[i]=1;
		else  
			o[i]=0;
	}
	for(i=1;i<=n;i++){
		if(o[i])
			printf("true\n");
		else
			printf("false\n");
	}
	return 0;
}
